home *** CD-ROM | disk | FTP | other *** search
-
- (* These procedures are hereby placed in the Public Domain.
- L/G Computer Consultants
- box 190
- Willingboro, NJ 08046 *)
-
-
- Function ReadCh:Char; (* read character only no return needed *)
- var (* NOTE: ADDS 128 TO ORDINAL OF SPECIAL KEYS *)
- c: char; (* eg: F1 (27,59) = 187 so that no special *)
- begin (* testing is required in procedure *)
- read(kbd,c);
- if (c = #27) and KeyPressed then
- begin
- read(Kbd,c);
- ReadCh:=chr(ord(c)+128);
- end
- else
- ReadCh:=c;
- end;
-
-
- Function ReadInt:Integer; (*** reads integers CR required to end read ***)
- var
- c: Integer;
- begin
- readln(c);
- ReadInt:=c;
- end;
-
-
- Function ReadByte:Byte; (*** used to read byte variables , 0..255 ***)
- var (*** needs CR to end read ***)
- c: Byte;
- begin
- readln(c);
- ReadByte:=c;
- end;